﻿<%@ Page Title="Registreer" Language="C#" MasterPageFile="~/QuaackMasterSiteAnonymous.Master" AutoEventWireup="true" CodeBehind="Registreer.aspx.cs" Inherits="Quaack.Registreer" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="contentBlok1" runat="server">
    <div class="container">
        <div class="col-1 control-group">
            <asp:CreateUserWizard
                ID="CreateUserWizard1" runat="server"
                OnCreatingUser="CreateUserWizard1_CreatingUser"
                OnCreatedUser="CreateUserWizard1_CreatedUser"
                DisableCreatedUser="True"
                DisplayCancelButton="True"
                CancelDestinationPageUrl="ZoekGebruiker.aspx"
                ContinueDestinationPageUrl="ZoekGebruiker.aspx"
                OnSendingMail="CreateUserWizard1_SendingMail">

                <MailDefinition From="quaackwebapp@gmail.com"
                    Subject="Bevestig uw Quaack account"
                    BodyFileName="~/mail.txt">
                </MailDefinition>

                <WizardSteps>
                    <asp:CreateUserWizardStep runat="server">
                        <ContentTemplate>
                            <div class="control-group">
                                <asp:Label ID="lblRegistreer" Class="navbar-text" runat="server" meta:resourcekey="lblRegistreerHeader" AssociatedControlID="UserName" />
                                <div class="controls">
                                    <asp:TextBox ID="UserName" class="input-block-level" runat="server" meta:resourcekey="txtGebruikersNaam" />
                                    <asp:RequiredFieldValidator ID="gebruikersNaamRequired" class="input-block-level text-error" runat="server" ControlToValidate="UserName" Display="Dynamic" meta:resourcekey="gebruikersNaamRequired" ToolTip="Gebruikersnaam is verplicht" ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorGebruikersNaam" Class="text-error" runat="server" ControlToValidate="UserName" Display="Dynamic" meta:resourcekey="ErrorGebruikersNaam" SetFocusOnError="True" ValidationExpression="^[a-zA-Z0-9_-]{8,16}$" />

                                    <asp:TextBox ID="PassWord" class="input-block-level" runat="server" TextMode="Password" meta:resourcekey="txtWachtWoord" />
                                    <asp:RequiredFieldValidator ID="wachtWoordRequired" Class="text-error" runat="server" ControlToValidate="PassWord" Display="Dynamic" meta:resourcekey="wachtWoordRequired" ToolTip="Wachtwoord is verplicht" ValidationGroup="CreateUserWizard1" SetFocusOnError="True" >*</asp:RequiredFieldValidator>
                                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorWachtWoord" Class="text-error" runat="server" ControlToValidate="PassWord" Display="Dynamic" meta:resourcekey="ErrorWachtwoord" SetFocusOnError="True" ValidationExpression="^[a-zA-Z0-9_-]{8,16}$" />

                                    <asp:TextBox ID="txtHerhaalWachtWoord" class="input-block-level" runat="server" TextMode="Password" meta:resourcekey="txtHerhaalWachtWoord" />
                                    <asp:RequiredFieldValidator ID="herhaalWachtWoordRequired" Class="text-error" runat="server" ControlToValidate="txtHerhaalWachtWoord" Display="Dynamic" meta:resourcekey="herhaalWachtWoordRequired" ToolTip="Herhaal wachtwoord is verplicht" ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>

                                    <asp:TextBox ID="Email" class="input-block-level" runat="server" meta:resourcekey="txtEmail" />
                                    <asp:RequiredFieldValidator ID="emailRequired" Class="text-error" runat="server" ControlToValidate="Email" Display="Dynamic" meta:resourcekey="emailRequired" ToolTip="Email is verplicht" ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorEmail" Class="text-error" runat="server" ControlToValidate="Email" Display="Dynamic" meta:resourcekey="ErrorEmail" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ValidationGroup="CreateUserWizard1" />

                                    <asp:TextBox ID="txtHerhaalEmail" class="input-block-level" runat="server" meta:resourcekey="txtHerhaalEmail" />
                                    <asp:RequiredFieldValidator ID="herhaalEmailRequired" Class="text-error" runat="server" ControlToValidate="txtHerhaalEmail" Display="Dynamic" meta:resourcekey="herhaalWachtWoordRequired" ToolTip="Herhaal email is verplicht" ValidationGroup="CreateUserWizard1" SetFocusOnError="True" >*</asp:RequiredFieldValidator>

                                    <asp:TextBox ID="txtProfielTekst" class="input-block-level" TextMode="MultiLine" MaxLength="2000" runat="server" meta:resourcekey="txtProfielTekst" />

                                    <asp:TextBox ID="txtAvatar" class="input-block-level" runat="server" meta:resourcekey="txtAvatarLink" />
                                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorAvatarLink" Class="text-error" runat="server" ControlToValidate="txtAvatar" Display="Dynamic" meta:resourcekey="ErrorAvatarLink" SetFocusOnError="True" ValidationExpression="(?:([^:/?#]+):)?(?://([^/?#]*))?([^?#]*\.(?:jpg|gif|png))(?:\?([^#]*))?(?:#(.*))?" />

                                    <asp:TextBox ID="txtMobielNR" class="input-block-level" runat="server" meta:resourcekey="txtMobielNR" />
                                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorMobielNR" Class="text-error" runat="server" ControlToValidate="txtMobielNR" Display="Dynamic" meta:resourcekey="ErrorMobielNR" SetFocusOnError="True" ValidationExpression="^06\d{8}$" />

                                    <asp:CompareValidator ID="PasswordCompare" Class="text-error" runat="server" ControlToCompare="Password" ControlToValidate="txtHerhaalWachtWoord" Display="Dynamic" meta:resourcekey="PasswordCompare" ValidationGroup="CreateUserWizard1" SetFocusOnError="True" ></asp:CompareValidator>
                                    <asp:CompareValidator ID="EmailCompare" Class="text-error" runat="server" ControlToCompare="Email" ControlToValidate="txtHerhaalEmail" Display="Dynamic" meta:resourcekey="EmailCompare" ValidationGroup="CreateUserWizard1" SetFocusOnError="True" ></asp:CompareValidator>
 
                                    <asp:Literal ID="ErrorMessage" runat="server" EnableViewState="False"></asp:Literal>
                                </div>
                            </div>
                            <div class="control-group">
                                <div class="controls">
                                </div>
                            </div>
                        </ContentTemplate>
                    </asp:CreateUserWizardStep>
                    <asp:CompleteWizardStep runat="server" />
                </WizardSteps>
            </asp:CreateUserWizard>
            <asp:Label ID="lblError" Class="text-error" runat="server"></asp:Label>
        </div>
    </div>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="contentBlok2" runat="server">
</asp:Content>


